package com.quiz.bis.mapper;

import com.quiz.bis.domain.model.QuestionStatistics;
import com.quiz.common.mybatis.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 题目统计持久层接口
 *
 * @author ahuan
 */
@Mapper
public interface QuestionStatisticsMapper extends BaseMapperPlus<QuestionStatistics> {

    /**
     * 批量更新题目组卷次数
     *
     * @param questionIds 题目ID列表
     * @return 影响行数
     */
    int batchUpdatePaperCount(@Param("questionIds") List<Long> questionIds, @Param("updateBy") Long updateBy);
}